#ifndef MPHTTPPARAMS_H
#define MPHTTPPARAMS_H

/******************************
 *
 * 名称：      常量定义类
 * 作用范围：   公共的
 * 创建时间：   2022-10-03
 *
 ******************************/

#include <string>
#include <limits>

namespace MP{
namespace HTTP{

const std::streamsize READ_FILE_BUF_SIZE = 4096;                //1024*4 ( 4KB )
const std::streamsize READ_RESPONSE_BUF_SIZE = 1024;            //1024   ( 1KB )
const std::size_t INVALID_SIZE = std::numeric_limits<std::size_t>::max();                            //无效的大小

const char DOUBLE_HYPHEN[] = "--";                        //{ '-', '-' };    "--";
const char CRLF[] = "\r\n";                               //{ '\r', '\n' };   "\r\n";                                   //回城换行
const char HEADER_SEPARATOR[] = ": ";                     // { ':', ' ' };   ": ";

const char HK_DATE[] = "Date";
const char HK_CONTENT_TYPE[] = "Content-Type";
const char HK_CONTENT_LENGTH[] = "Content-Length";
const char HK_USERAGENT[] = "User-Agent";
const char HK_ACCEPT[] = "Accept";
const char HK_ACCEPT_ENCODING[] = "Accept-Encoding";

const char HK_TRANSFER_ENCODING[] = "Transfer-Encoding";
const char HK_TRANSFER_ENCODING_CHUNKED[] = "chunked";

const char HK_CACHE_CONTROL[] = "Cache-Control";
const char HK_PRAGMA[] = "Pragma";
const char HK_EXPIRES[] = "Expires";
const char HK_CACHE_CONTROL_NO_CACHE[] = "no-cache";

const char HK_AUTHORIZATION[] = "Authorization";

const char HK_CONNECTION[] = "Connection";
const char HK_CONNECTION_CLOSE[] = "close";
const char HK_CONNECTION_KEEP_ALIVE[] = "keep-alive";




}   //HTTP
}   //MP

#endif // MPHTTPPARAMS_H
